<!doctype html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<form action="/klass/list" method="post">
    <label>Name:</label>
    <input type="text" name="name">
    <label>Major:</label>
    <input type="text" name="major">
    <input type="submit" value="search">
</form>
<table border="1">
    <tr>
        <td>id</td>
        <td>name</td>
        <td>major</td>
        <td>act</td>
    </tr>
    <tr th:each="klass: ${klassList}">
        <td th:text="${klass.id}">name</td>
        <td th:text="${klass.name}">name</td>
        <td th:text="${klass.major}">major</td>
        <td>
            <a th:href="@{/klass/delete/{id}(id=${klass.id})}">Delete</a>
            <a th:href="@{/klass/update/{id}(id=${klass.id})}">Update</a>
        </td>
    </tr>
</table>
<div>
    <a href="/klass/create">Create</a>
</div>
<!--klass list-->
</body>
</html>